package com.yjhealth.libs.core.databinding;

import android.databinding.InverseMethod;

/**
 * Created on 2019/12/13 17:48
 *
 * @author cyf
 * @des :
 */


public class Inverse {
    @InverseMethod("bool2str")
    public static boolean str2bool(String str) {
        return "1".equals(str);
    }

    public static String bool2str(boolean b) {
        return b ? "1" : "0";
    }

}
